package cn.tedu._03vehicle.controller;

import cn.tedu._03vehicle.base.response.JsonResult;
import cn.tedu._03vehicle.mapper.NoticeMapper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/v1/notice")
@Tag(name = "03-公告管理模块")
public class NoticeController {
    @Autowired
    private NoticeMapper noticeMapper;

    @GetMapping("list")
    @Operation(summary = "查询公告列表")
    public JsonResult list(){
        return JsonResult.ok(noticeMapper.selectNoticeList());
    }

}
